package com.base.model;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import lombok.Data;

/**
 * 自定义分配
 * 
 * @ClassName: CustomAllot
 * @Description:
 * @Author xuyou
 * @DateTime 2019年9月29日 下午1:42:53
 */
@Data
public class CustomAllot implements IExcelModel, IExcelDataModel {
	
	@Excel(name = "区域", isImportField = "true")
	@NotEmpty(message = "区域不能为空")
	private String region;

	@NotNull(message = "顺序不能为空")
	@Excel(name = "顺序")
	private Integer order;
	
	@NotNull(message = "比例不能为空")
	@Excel(name = "比例")
	private Double ratio;

	private String errorMsg;

	private int rowNum;

	@Override
	public String getErrorMsg() {
		return errorMsg;
	}

	@Override
	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}

	@Override
	public int getRowNum() {
		return rowNum;
	}

	@Override
	public void setRowNum(int rowNum) {
		this.rowNum = rowNum;
	}
}
